package com.welove.http;

import org.apache.http.HttpEntity;
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
import org.apache.http.impl.client.AbstractHttpClient;

public class HttpPost extends TBaseHttpRequest {

	public HttpPost(AbstractHttpClient httpClient,String url) {
		
		this(httpClient, url, null);
	}

	
	public HttpPost(AbstractHttpClient httpClient,String url,HttpEntity entity)
	{
          super(httpClient);
		
		this.httpUriRequest = new org.apache.http.client.methods.HttpPost(url);
		
		if(null != entity)
		  ((HttpEntityEnclosingRequestBase)httpUriRequest).setEntity(entity);
	}
}
